const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    open: true,
    host: 'localhost',
    proxy: {
      "/api": {
        target: "http://sph-h5-api.atguigu.cn",
        // pathRewrite: {"^/api" : ""}
        // pathRewrite不是一定要重写的 重不重写取决于真实服务器的请求地址需不需要这个  需要不重写 不需要才重写
      },
      "/mock": {
        target: " http://localhost:3000",
        pathRewrite: { "^/mock": "" }
      }
    }
  }
})


